get post title by post id wordpress

128

search post by post title in wordpres -

Code
$args = array("post_type" => "mytype", "s" => $title);
$query = get_posts( $args );

Comments

Submit
0 Comments